﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<meta charset="utf-8" />
	<title>17玩芽-活动预告</title>
	<meta name="Keywords" content="17玩芽-活动预告" />
	<meta name="Description" content="17玩芽-活动预告" />
	<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
	<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
	<!-- Mobile Devices Support @begin -->
	<meta content="application/xhtml+xml;charset=UTF-8" http-equiv="Content-Type">
	<meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
	<meta content="no-cache" http-equiv="pragma">
	<meta content="0" http-equiv="expires">
	<meta content="telephone=no, address=no" name="format-detection">
	<meta name="apple-mobile-web-app-capable" content="yes" /> <!-- apple devices fullscreen -->
	<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
	<!-- Mobile Devices Support @end -->
</head>
<center>

		<body ondragstart="return false;width:100%">
			<div class="foot" style="-webkit-transform:translate3d(0,0,0);width:100%;margin-top:0px;">

				<img src="/m/img/reg/<?php echo($activity['activity_img']);  ?>" alt=""/><br>

				<?php foreach($SubActivityResult as $subActivity): ?>
				<form action="./toUploadImg.php" method="post" name="joinus">

					<div style="height: 600px;width: 500px;<?php if($apply_state!=null&&$apply_state==1){ echo('background-color: red;');} ?><?php if($apply_state!=null&&$apply_state==2){ echo('background-color: green;');} ?><?php if($apply_state!=null&&$apply_state==0){ echo('background-color: gray;');} ?>">
						N0.<?php echo($subActivity['sort']);  ?>
						<input type="hidden" name="id" value="<?php echo($subActivity['id']);  ?>"/>
						<input type="hidden" name="uid" value="<?php echo($uid);  ?>"/>
						<input type="hidden" name="activity_id" value="<?php echo($activity_id);  ?>"/>

						<pattern id="raduisImage1" patternUnits="userSpaceOnUse" width="100" height="100">
							<image src="/m/img/reg/<?php echo($subActivity['img_icon1']);  ?>" x="0" y="0" width="100" height="100" />
						</pattern>
						<pattern id="raduisImage2" patternUnits="userSpaceOnUse" width="100" height="100">
							<image src="/m/img/reg/<?php echo($subActivity['img_icon2']);  ?>" x="0" y="0" width="100" height="100" />
						</pattern>
						<pattern id="raduisImage3" patternUnits="userSpaceOnUse" width="100" height="100">
							<image src="/m/img/reg/<?php echo($subActivity['img_icon3']);  ?>" x="0" y="0" width="100" height="100" />
						</pattern><br>
						<label><strong><?php echo($subActivity['title']);  ?></strong></label><br><br>
						<label><strong><?php echo($subActivity['explain']);  ?></strong></label><br>
						=成功上传作品累积达到<label><strong><?php echo($subActivity['production_count']);  ?>次</strong></label>作品点赞数超过
						<?php echo($subActivity['vote_count']);  ?>个<br>
						<br>
						<label>我的进度:</label><?php  echo ($progress_report) ;echo("%"); echo($subActivity['production_count']) ?>


						<br>
						<button <?php if($apply_state!=null&&$apply_state==0){
							if($progress_report!=null&&$progress_report==0){
								echo('type="submit"');
							}elseif
							($progress_report!=null&&$progress_report==$subActivity['production_count']){
								echo('disabled="true"');
							}elseif
							($progress_report!=null&&$progress_report!=$subActivity['production_count']){
								echo('disabled="true"');
							}
						} ?>>
							<?php if($apply_state!=null&&$apply_state==0){
								if($progress_report!=null&&$progress_report==0){
									echo("马上参与");
								}elseif
								($progress_report!=null&&$progress_report==$subActivity['production_count']){
									echo("已完成啦");
								}elseif
								($progress_report!=null&&$progress_report!=$subActivity['production_count']){
									echo("正在努力");
								}
							} ?>
						</button>
					</div>
					<div style="height: 50px;width: 500px; "></div>
				</form>
				<?php endforeach; ?>

			</div>
		</body>

</center>
</html>